home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.3 KB | 105 lines | [TEXT/MPS ] |
- ;
- ; File: SegLoad.a
- ;
- ; Contains: Segment Loader Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__SEGLOAD__') = 'UNDEFINED' THEN
- __SEGLOAD__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF FOR_SYSTEM7_ONLY THEN
- IF ¬ GENERATINGCFM THEN
- ;
- ; CountAppFiles, GetAppFiles, ClrAppFiles, GetAppParms, getappparms,
- ; and the AppFile data structure and enums are obsolete.
- ; They are still supported for writing old style 68K apps,
- ; but they are not supported for CFM-based apps.
- ; Use AppleEvents to determine which files are to be
- ; opened or printed from the Finder.
- ;
-
- appOpen EQU 0 ;Open the Document (s)
- appPrint EQU 1 ;Print the Document (s)
- AppFile RECORD 0
- vRefNum ds.w 1 ; offset: $0 (0)
- fType ds.l 1 ; offset: $2 (2)
- versNum ds.w 1 ; offset: $6 (6) ; versNum in high byte
- fName ds Str255 ; offset: $8 (8)
- sizeof EQU * ; size: $108 (264)
- ENDR
- ;
- ; pascal void CountAppFiles(short *message, short *count)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION CountAppFiles
- ENDIF
-
- ;
- ; pascal void GetAppFiles(short index, AppFile *theFile)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION GetAppFiles
- ENDIF
-
- ;
- ; pascal void ClrAppFiles(short index)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION ClrAppFiles
- ENDIF
-
- ;
- ; pascal void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam)
- ;
- IF ¬ GENERATINGCFM THEN
- _GetAppParms: OPWORD $A9F5
- ELSE
- IMPORT_CFM_FUNCTION GetAppParms
- ENDIF
-
- ENDIF
- ;
- ; Because PowerPC applications don’t have segments,
- ; UnloadSeg is unsupported for PowerPC.
- ;
- IF GENERATING68K THEN
- ;
- ; pascal void UnloadSeg(void *routineAddr)
- ;
- IF ¬ GENERATINGCFM THEN
- _UnloadSeg: OPWORD $A9F1
- ELSE
- IMPORT_CFM_FUNCTION UnloadSeg
- ENDIF
-
- ELSE
- ENDIF
- ENDIF
- IF OLDROUTINELOCATIONS THEN
- ;
- ; pascal void ExitToShell(void )
- ;
- IF ¬ GENERATINGCFM THEN
- _ExitToShell: OPWORD $A9F4
- ELSE
- IMPORT_CFM_FUNCTION ExitToShell
- ENDIF
-
- ENDIF
- ENDIF ; __SEGLOAD__
-
-